package com.yuyou.fn.api.dto;

import java.io.Serializable;
import java.util.Collection;

public class PageDto<T> implements Serializable {

    private Collection<T> list ;

    private int pageNo ;

    private int pageSize ;

    private int total ;

    public PageDto(Collection<T> list, int pageNo, int pageSize, int total) {
        this.list = list;
        this.pageNo = pageNo;
        this.pageSize = pageSize;
        this.total = total;
    }

    public Collection<T> getList() {
        return list;
    }

    public void setList(Collection<T> list) {
        this.list = list;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
